package pts.salooner.ws.model;

import pts.salooner.data.SaloonerVo;

public class Salooner {

	private int id;
	private String name;
	private char sexe;

	// ==================
	// Constructors
	// ==================
	public Salooner() {
		super();
	}

	public Salooner(int id, String name, char sexe) {
		super();
		this.id = id;
		this.name = name;
		this.sexe = sexe;
	}

	// ==================
	// Specifics methods
	// ==================

	public Salooner(SaloonerVo vo) {
		setId(vo.getId());
		setName(vo.getLastname());
		setSexe('M');

	}

	// ==================
	// Overrode methods
	// ==================
	@Override
	public String toString() {
		return "SaloonerObj [id=" + id + ", name=" + name + ", sexe=" + sexe
				+ "]";
	}

	// ==================
	// GETTER/SETTERS
	// ==================
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public char getSexe() {
		return sexe;
	}

	public void setSexe(char sexe) {
		this.sexe = sexe;
	}

}
